package com.mnemonic.views;

import javax.swing.JPanel;

import com.mnemonic.lifecycle.Lifecycle;
import com.mnemonic.lifecycle.Lifecycles;

public abstract class AbstractPanel extends JPanel implements Lifecycle {

    private static final long serialVersionUID = 1L;
    protected volatile Lifecycles state;

    @Override
    public void start() {
        state = Lifecycles.Start;
    }

    @Override
    public void init() {
        state = Lifecycles.Init;
    }

    @Override
    public void destory() {
        state = Lifecycles.Destory;
    }
}
